package com.java.service;

import java.util.List;

import com.java.entity.ExChapter;
import com.java.entity.ExChapterRecord;
import com.java.entity.vo.ChapterRecordVo;
import com.java.entity.vo.SubmitRecord;
import com.java.util.resp.BaseRespone;
import com.java.util.resp.TableRespone;

public interface ChapterService {

	// 新增修改章节、练习试卷
	BaseRespone saveChapter(ExChapter chapter);
	// 删除章节、练习试卷
	BaseRespone deleteChapter(String chapterId);
	// 获取章节、练习试卷列表
	ExChapter getChapterInfo(String chapterId);
	TableRespone getChapters(Integer type, String title, int page, int pageSize);
	TableRespone getChapterVos(Integer type, String title, String accountId, int page, int pageSize);
	
	
	// 移除章节、练习试卷的题目绑定
	BaseRespone deleteChapterTopic(String chapterId, String topicId);
	
	// 获取章节或者练习的答题记录列表
	TableRespone getChapterRecords(String title, String type, String accountId, int page, int pageSize);
	// 获取章节或者练习的答题信息
	ExChapterRecord getChapterRecord(String chapterId, String accountId);
	ChapterRecordVo getChapterRecordVo(String chapterId, String accountId);
	ChapterRecordVo initChapterRecord(String chapterId, String accountId);
	ChapterRecordVo getChapterRecordVoById(String recordId, String accountId);
	
	// 获取章节或者练习的答题信息
	ExChapterRecord getChapterRecord(String recordId);
	BaseRespone getImitate(Boolean init, String accountId);
	// 临时保存答题记录
	BaseRespone saveRecord(String recordId, String accountId);
	BaseRespone reStartRecord(String recordId, String accountId);
	BaseRespone reSelectRecord(String recordId, String accountId);
	// 临时保存答题记录
	//BaseRespone tempSaveRecord(String recordId, String accountId);
	// 结束答题
	BaseRespone recordFinish(String recordId, String accountId);
	//BaseRespone recordTemp(SubmitRecord submitRecord);
	BaseRespone submitAnswer(SubmitRecord submitRecord);
	BaseRespone delAllChapter(List<String> list);
}
